<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnUpstreamTaskInTemplateTable extends AbstractMigration
{
    public function up()
    {
        $this->table("template_todo")
            ->addColumn('upstream_downstream_template', 'json', ['null' => true, 'comment' => '上游任务配置'])
            ->save();
    }

    public function down()
    {
        $this->table('template_todo')
            ->removeColumn('upstream_downstream_template')
            ->save();
    }
}
